package geturl.core;

import geturl.data.UserUrl;
import geturl.ui.UrlMessage;

public class UrlRunner implements Runnable_Interface {

	@SuppressWarnings("null")
	@Override
	public String run() {
		String url = null;
		
		do {
			urlMessage();
			url = getUrl();
		}while((url.equals(null) == true) && (url.trim().equals("") == true));
		
		return url;
	}

	private String getUrl() {
		UserUrl userUrl = new UserUrl();
		String url = userUrl.getUrl();
		return url;
	}

	private void urlMessage() {
		
		UrlMessage urlMessage = new UrlMessage();
		urlMessage.message();
		
	}

}
